<?php

namespace App\Common;

class Status
{

    /**
     * @Info("成功")
     */
    const SUCCESS = 200;

    /**
     * @Info("异常")
     */
    const ERROR = 300;

    /**
     * @Info("未知")
     */
    const UNKNOWN = 1;

    /**
     * @Info("正常")
     */
    const REGULAR = 1;

    /**
     * @Info("通过")
     */
    const PASS = 2;

    /**
     * @Info("禁用")
     */
    const FORBIDDEN = 9;

    /**
     * @Info("未删除")
     */
    const NOT_DELETE = 0;

    /**
     * @Info("已删除")
     */
    const DELETED = 1;

    const PAGE_SIZE = 10;

    const PAGE = 1;

    const JWT_TOKEN = [
        'expire'     => 1001,   # 过期
        'invalid'    => 1002,   # 无效
        'empty'      => 1003,   # 空
        'user_nil'   => 1004,   # 用户不存在
        'mobile_err' => 1005,   # 手机异常
        'unknow'     => 1006,   # 未知
        'heard_nil'  => 1007    # 未获取到 Authorization 头信息
    ];

    /**
     * 工作状态
     */
    const WORK_ST = [
        1=>"离职-随时到岗",
        2=>"在职-月内到岗",
        3=>"在职-考虑机会",
        4=>"在校-看机会"
    ];

    /**
     * 企业规模
     */
    const BUSINESS_SCALE = [
        1=>"0-99人",
        2=>"100-499人",
        3=>"500-999人",
        4=>"1000-4999人",
        5=>"5000-10000人",
        6=>"10000人以上"
    ];


    /**
     * 企业类型
     */
    const BUSINESS_TYPE = [
        1=>"外资（欧美）",
        2=>"外资（非欧美）",
        3=>"合资",
        4=>"国企",
        5=>"央企",
        6=>"民营企业",
        7=>"上市企业",
        8=>"其他性质",
        9=>"股份制"
    ];

    /**
     * 学历
     */
    const EDUCATION = [
        1=>"不限",
        2=>"大专",
        3=>"本科",
        4=>"硕士",
        5=>"博士"
    ];

    /**
     * 工作经验
     */
    const WORK_EXP = [
        1=>"不限",
        2=>"1年以内",
        3=>"1-3年",
        4=>"3-5年",
        5=>"5-10年",
        6=>"10年以上"
    ];

    /**
     * 招聘类型 1 2社招
     */
    const JOB_TYPE = [
        1=>"校招",
        2=>"社招",
        3=>"实习"
    ];


    /**
     * 薪资
     */
    const JOBS_SALARY = [
        1=>"3k以下",
        2=>"3k一5k",
        3=>"5k一8k",
        4=>"8k一10k",
        5=>"10k一15k",
        6=>"15k一20k",
        7=>"20k一50k",
        8=>"50k以上",
//        9=>"50k一100k",
//        10=>"100k以上"
    ];

    /**
     * 薪资
     * 1正常，2邀面试 3已查看 4不合适 5已推荐 6暂无状态 7已投递 8感兴趣 9取消感兴趣 10 取消不合适
     */
    const DELIVER_STATUS = [
        1=>"已匹配",
        2=>"邀面试",
        3=>"已查看",
        4=>"不合适",
        5=>"已推荐",
        6=>"",
        7=>"已投递",
        8=>"感兴趣",
        9=>"取消感兴趣",
        10=>"取消不合适"
    ];


    /**
     * @Info("admin-type")
     */
    const ADMIN_TYPE = 1;

    /**
     * @Info("PC-type")
     */
    const PC_TYPE = 2;

    /**
     * @Info("XC-type")
     */
    const XC_TYPE = 3;

    const TXKEY = "KBYBZ-XF73T-EFXXG-V6AHU-HCFGE-MLBZG";


    /**
     * link flow
     */
    const LINK_FLOW = [
        "secret"=> "zQ5gQ6pCq6WQdBkZHkAOsWT6VJSN1Qpr",
        "key"=> "bifi4SqpR9FKWhMX",
        "channel_key"=> "udc_10000575iyIh6gb",
        "channel_type"=>"UDC",
        "url"=>"https://cdp-api.linkflowtech.com/"
    ];
}
